package com.ffapp.rainmonitorcustom.bean;


import com.alibaba.fastjson.annotation.JSONField;

import java.util.ArrayList;

public class OperationListBean extends BaseListBeanBc {


    @JSONField(name = "operTask")
    private OperationListData operTask;

    @JSONField(name = "operFault")
    private OperationListData operFault;

    @JSONField(name = "list")
    private ArrayList<OperationListData> list = new ArrayList<OperationListData>();

    public ArrayList<OperationListData> getList() {
        return list;
    }

    public void setList(ArrayList<OperationListData> list) {
        this.list = list;
    }

    public void addListBean(OperationListBean listbean) {
        if (listbean == null)
            return;
        if (this.getCurrentPage() == INIT_PAGE) {
            setList(listbean.getList());
        } else {
            if (list == null)
                list = new ArrayList<OperationListData>();
            list.addAll(listbean.getList());
        }
        setListBeanData(listbean);
    }

    public OperationListData getOperTask() {
        return operTask;
    }

    public void setOperTask(OperationListData operTask) {
        this.operTask = operTask;
    }

    public OperationListData getOperFault() {
        return operFault;
    }

    public void setOperFault(OperationListData operFault) {
        this.operFault = operFault;
    }

}
